package com.ocean.admin.model.dto.post;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 岗位新增DTO
 *
 * @author zhang
 * @since 2022/8/22
 */
@Data
public class SysPostSaveDTO {

    /**
     * 岗位编码
     */
    @NotBlank(message = "请输入岗位编码")
    @Schema(description = "岗位编码", required = true)
    private String postCode;

    /**
     * 岗位名称
     */
    @NotBlank(message = "请输入岗位名称")
    @Schema(description = "岗位名称", required = true)
    private String postName;

    /**
     * 显示顺序
     */
    @Schema(description = "显示顺序")
    private Integer postSort;

    /**
     * 状态（0正常 1停用）
     */
    @Schema(description = "状态（0正常 1停用）")
    private Integer status;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
}
